import java.util.concurrent.ConcurrentHashMap;

/**
 * Content: Concurrent类-ConcurrentHashMap
 * --------------------------------------------------
 * Java数据类型系列之Collections工具类: https://juejin.cn/post/6921864301238026247
 */

public class java_1004_class_Concurrent {
    public static void main(String[] args) {

        // Concurrent类-ConcurrentHashMap
        System.out.println("--------------------Concurrent类-ConcurrentHashMap--------------------");

        ConcurrentHashMap<String, String> map = new ConcurrentHashMap<>();

        map.put("name", "xqz");
        map.put("hobby", "dance");

        System.out.println(map);
    }
}
